package site.teamo.biu.flink.common.function.descriptor;

import com.alibaba.fastjson2.JSON;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author haocongshun
 * @date 2023/10/31 13:53:23
 */
@Data
@Accessors(chain = true)
public class OperatorPackageDescriptor {
    private String name;

    private List<OperatorDescriptor> operators;


    public static OperatorPackageDescriptor generate(String jsonStr) {
        return JSON.parseObject(jsonStr, OperatorPackageDescriptor.class);
    }
}
